package com.example.demo.day.config.learn.design.proxy.p4;

public class ZhangLaoSan implements IPerson {

    private ZhangSan zhangSan;

    public ZhangLaoSan(ZhangSan zhangSan) {
        this.zhangSan = zhangSan;
    }

    public void setZhangSan(ZhangSan zhangSan) {
        this.zhangSan = zhangSan;
    }

    @Override
    public void findTeacher() {
        System.out.println("张老三开始找老师");
        zhangSan.findTeacher();
        System.out.println("开始学习");
    }
}
